package com.vframework.system.menu.mapper;

import java.util.List;
import java.util.Map;

import com.vframework.base.mapper.BaseMapper;
import com.vframework.system.menu.model.MenuBean;
import com.vframework.system.menu.model.OrgMenuBean;
import com.vframework.system.menu.model.RoleMenuBean;

public interface MenuMapper extends BaseMapper {
    public List<MenuBean> getMenuList(Map<String, ?> paramMap);
    
    public MenuBean getMenuById(String menuId);
    
    public List<MenuBean> getPmenuList(String menuLevel);
    
    public int getMenuChildren(String menuId);
    
    public List<String> getRoleMenuByMenuId(String menuId);
    
    public int updateMenu(MenuBean menuBean);
    
    public int insertMenu(MenuBean menuBean);
    
    public int insertOrgMenu(List<OrgMenuBean> orgMenuList);
    
    public int insertSysRoleMenu(List<RoleMenuBean> roleMenuList);
    
    public int deleteOrgMenu(String menuId);
    
    public int deleteMenu(Map<String, ?> paramMap);
    
    public int deleteOrgMenuChildren(Map<String, ?> paramMap);
    
    public int deleteRoleMenu(Map<String, ?> paramMap);
    
    public int deleteRoleMenuByOrgs(Map<String, ?> paramMap);
    
    public int deleteRoleMenuInfoById(String menuId);
}
